package com.xnyy.lottery.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyy.lottery.domain.entity.Ticket;
import org.apache.ibatis.annotations.Param;

/**
 * @description:
 * @auther: Administrator
 * @date: 2022/9/16 23:01
 */
public interface TicketMapper extends BaseMapper<Ticket> {
    Integer getNextNum(String region);

    int updateSerialNumber(@Param("region") String region, @Param("increase") int increase);

    Ticket getByRegion(@Param("region") String region);
}
